package com.alili_tv.system.service;

import com.alili_tv.system.entity.VideoRank;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

public interface VideoRankService extends IService<VideoRank> {

    /**
     * 获取24小时前 所有视频的热度增量
     * @return
     */
    List<VideoRank> getIncrYesterday(LocalDateTime now);

    /**
     * 获取某一天的视频热度增量
     * @param oneDay
     * @return
     */
    List<VideoRank> getIncrAtOneDay(LocalDateTime oneDay);
}
